<div id="logout">
  <div class="llblock">
    <p><%= link_to "il mio profilo", :controller => "users", :action => "show", :id => session[:user_id] %></p>
  </div>
  
  
  
  <div class="llblock">
    <p id="welcome">
      <% if @user_session.is_admin? %>
        <%= link_to "admin", :controller => "general", :action => "admin" %>
      <% else %>
        Bentornato, <%= @user_session.to_s {|user| user.username} %>
      <% end %>
    </p>
  </div>
  
  
  
  <div class="llblock">
    <p>
      <!-- per usare ajax < % form_tag :url => {:action => :destroy, :controller => :sessions} do %> < %= submit_tag "", :id => "logout_submit" %>-->
      <%= link_to "", {:action => :destroy, :controller => :sessions}, {:id => "logout_submit"} %>
    </p>
  </div>
</div>